<?php if(!defined("PATH_HD"))exit;?>
<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>        
        <title>欢迎使用  后盾HD框架安装配置</title>
        <meta http-equiv="content-type" content="text/htm;charset=utf-8"/>  
        <link href='http://localhost/cms/setup/tpl/state/css/setup.css' rel='stylesheet' type='text/css'/>
        <script type='text/javascript' src='http://localhost/cms/hdphp/org/jquery_1.7.1.min.js'></script>
<script type='text/javascript' src='http://localhost/cms/hdphp/org/hdjs/dialog.js'></script>
<link  rel='stylesheet' type='text/css' href='http://localhost/cms/hdphp/org/hdjs/css/dialog.css'/>
    </head>

<div class="hd_setup">
    <strong>欢迎使用后盾HD框架，通过HD框架手册或登录<a href="http://bbs.houdunwang.com/">后盾论坛</a>学习使用HD框架安装配置</strong>
    <h2>
        <a href="http://localhost/cms/setup/index.php">返回安装首页</a>&nbsp;&nbsp;&nbsp;
        <a href="http://localhost/cms/setup/index.php/rbac/showaddnode/level/0" target="_blank;">添加APP应用节点</a>&nbsp;&nbsp;&nbsp;
        <a href="javascript:void(0)" onclick="window.close();return false;">关闭</a>&nbsp;<a href="http://localhost/cms/setup/index.php/rbac/lock" >锁定SETUP应用</a>
    </h2>
</div>
<div class="setup"> 
    <div id="hd_rbac">
        <?php
        foreach($node as $v){ 
        ?>
        <h1><?php echo $v['title'];?><strong>(<?php echo $v['name'];?>)</strong>&nbsp;&nbsp;
            <a href="http://localhost/cms/setup/index.php/rbac/showaddnode/nid/<?php echo $v['nid'];?>/level/<?php echo $v['level'];?>" style="font-size:14px;">
                <img src='http://localhost/cms/setup/tpl/state/image/add.png' width='16' height='16' />&nbsp;添加控制器
            </a>&nbsp;&nbsp;
            <a href="http://localhost/cms/setup/index.php/rbac/delnode/nid/<?php echo $v['nid'];?>" style="font-size:14px;">
                <img src='http://localhost/cms/setup/tpl/state/image/remove.png' width='16' height='16' />&nbsp;删除应用
            </a>
        </h1>
        <?php
        if(isset($v['node']) && is_array($v['node'])){
        foreach($v['node'] as $m){
        ?>
        <table>
            <thead>
                <tr>
                    <th>
                        <?php echo $m['title'];?><strong>(<?php echo $m['name'];?>)</strong>
                        <a href="http://localhost/cms/setup/index.php/rbac/showaddnode/nid/<?php echo $m['nid'];?>/level/<?php echo $m['level'];?>">
                            添加
                        </a>&nbsp;&nbsp;
                        <a href="http://localhost/cms/setup/index.php/rbac/delnode/nid/<?php echo $m['nid'];?>">
                            删除
                        </a>
                    </th>
                </tr>
            </thead>
            <?php
            if(!empty($m['node'])){
            ?>
            <tbody>
                <tr>
                    <td>
                        <ul>
                            <?php
                            foreach($m['node'] as $j){
                            ?>
                            <li>
                                <?php echo $j['title'];?><strong>(<?php echo $j['name'];?>)</strong>
                                <a href="http://localhost/cms/setup/index.php/rbac/delnode/nid/<?php echo $j['nid'];?>">
                                    删除
                                </a>

                            </li>
                            <?php
                            }
                            ?>
                        </ul></td></tr></tbody>
            <?php
            }
            ?>
        </table>
        <?php
        }
        }
        }
        ?>
    </div>

</div>

</body>
</html>
